/**
 * 
 */
package freedom.sample.json;

import java.util.List;

import net.sf.ezmorph.bean.MorphDynaBean;

/**
 * @author charlie
 *
 */
public class Response {
	
	private Head head;
	private List content;
	
	public String getFieldValue(int row, String key){
		MorphDynaBean map = (MorphDynaBean)content.get(row);
		return (String) map.get(key);
	}
	
	public Response() {
		super();
	}
	public Response(Head head, List content) {
		super();
		this.head = head;
		this.content = content;
	}
	public Head getHead() {
		return head;
	}
	public void setHead(Head head) {
		this.head = head;
	}
	public List getContent() {
		return content;
	}
	public void setContent(List content) {
		this.content = content;
	}
	public String toString() {
		return "Response [head=" + head + ", content=" + content + "]";
	}

}
